package com.zre.service;

import com.zre.model.vo.BookInfo;
import com.zre.model.po.BookTypeCodePo;
import com.zre.util.PageUtils;

import java.util.List;


public interface BookInfoService {

    /**
     * 查询所有书籍--使用join
     * @param bookType
     * @param bookName
     * @return
     */
    PageUtils queryBooksByCondition(String bookType, String bookName, Integer start, Integer end);



    /**
     * 添加书籍
     * @param bookInfo
     * @return
     */
    int addBooks (BookInfo bookInfo);


    /**
     * 添加书籍类型中间表信息
     * @param bookTypeCodePo
     * @return
     */
    int addBookTypeCode(BookTypeCodePo bookTypeCodePo);

}
